/** * Selection Lite * Carefully selected Elementor addons bundle, for building the most awesome websites * * @encoding UTF-8 * @version 1.14 * @copyright (C) 2018 - 2023 Merkulove ( https://merkulov.design/ ). All rights reserved. * @license GPLv3 * @contributors merkulove, vladcherviakov, phoenixmkua, podolianochka, viktorialev01 * @support help@merkulov.design **/ "use strict";const mdpCrawler={crawler:function(e){if("slider"===document.querySelector("."+e).dataset.tickerType){const n=+document.querySelector(`.${e} `).dataset.slidesToShowWidescreen,o=+document.querySelector(`.${e} `).dataset.slidesToShowLaptop,r=+document.querySelector(`.${e} `).dataset.slidesToShowTabletExtra,i=+document.querySelector("."+e).dataset.slidesToShowTablet,l=+document.querySelector("."+e).dataset.slidesToShowMobileExtra,s=+document.querySelector("."+e).dataset.slidesToShowMobile;function t(){let t;return elementorFrontend.config.responsive.activeBreakpoints.hasOwnProperty("widescreen")&&window.matchMedia(`(min-width: ${elementorFrontend.config.responsive.activeBreakpoints.widescreen.value}px)`).matches&&n&&(t=n),n&&elementorFrontend.config.responsive.activeBreakpoints.hasOwnProperty("widescreen")?window.matchMedia(`(min-width: ${elementorFrontend.config.responsive.activeBreakpoints.tablet.value+1}px)`).matches&&window.matchMedia(`(max-width: ${elementorFrontend.config.responsive.activeBreakpoints.widescreen.value-1}px)`).matches&&(t=+document.querySelector("."+e).dataset.slidesToShow):window.matchMedia(`(min-width: ${elementorFrontend.config.responsive.activeBreakpoints.tablet.value+1}px)`).matches&&(t=+document.querySelector("."+e).dataset.slidesToShow),elementorFrontend.config.responsive.activeBreakpoints.hasOwnProperty("laptop")&&window.matchMedia(`(max-width: ${elementorFrontend.config.responsive.activeBreakpoints.laptop.value}px)`).matches&&o&&(t=o),elementorFrontend.config.responsive.activeBreakpoints.hasOwnProperty("tablet_extra")&&window.matchMedia(`(max-width: ${elementorFrontend.config.responsive.activeBreakpoints.tablet_extra.value}px) `).matches&&r&&(t=r),window.matchMedia(`(max-width: ${elementorFrontend.config.responsive.activeBreakpoints.tablet.value}px)`).matches&&i&&(t=i),elementorFrontend.config.responsive.activeBreakpoints.hasOwnProperty("mobile_extra")&&window.matchMedia(` (max-width: ${elementorFrontend.config.responsive.activeBreakpoints.mobile_extra.value}px) `).matches&&l&&(t=l),window.matchMedia(`(max-width: ${elementorFrontend.config.responsive.activeBreakpoints.mobile.value}px)`).matches&&s&&(t=s),t}setTimeout(()=>{this.tickerSlider(e,t())},200),window.addEventListener("resize",()=>{setTimeout(()=>{this.tickerSlider(e,t())},200)})}else setTimeout(()=>{const t=document.querySelector(`.${e} .mdp-crawler-elementor-content-wrapper`).offsetWidth,n=document.querySelector(`.${e} .mdp-crawler-elementor-content-wrapper`),o=document.querySelector(`.${e} .mdp-crawler-elementor-ticker`).offsetWidth,r=document.documentElement;t=t&&function(){let e=[],o=[],r=s-1;for(let n=0;n=t?L(1,"drag"):v-w>100&&n.children.length>=t?L(-1,"drag"):n.style.left=w+"px",document.onmouseup=null,document.onmousemove=null}function L(e,o){a&&(n.style.transition=`all ${a}s`),o||!f&&!x||(w=parseFloat(window.getComputedStyle(n).getPropertyValue("left"))),1===e&&x&&n.children.length>=t?(y+=c,n.style.left="right"===m?w+E*c+"px":w-E*c+"px",y>=s-t&&"yes"!==u&&(n.style.left="right"===m?E*(s-t)+"px":-E*(s-t)+"px"),x=!1):-1===e&&f&&n.children.length>=t&&(y-=c,n.style.left="right"===m?w-E*c+"px":w+E*c+"px",y<=0&&"yes"!==u&&(n.style.left="0px"),f=!1)}n.style.left="left"===m?"yes"===u&&n.children.length>=t?-E*t+"px":"0px":"yes"===u&&n.children.length>=t?E*t+"px":"0px",n.addEventListener("transitionend",(function(){if(n.style.transition="none",f=!0,x=!0,0===y&&"yes"!==u)f=!1;else if(y<=-1){y+=s;const e=E*(y+t);n.style.left="right"===m?e+"px":-e+"px"}if(y>=s-t&&"yes"!==u)x=!1;else if(y>=s){y-=s;const e=E*(y+t);n.style.left="right"===m?e+"px":-e+"px"}})),n.onmousedown=g,n.addEventListener("touchstart",g),n.addEventListener("touchend",k),n.addEventListener("touchmove",S),(o||r)&&(o.addEventListener("click",()=>{L(1)}),r.addEventListener("click",()=>{L(-1)}))}else{for(let e=0;e{E(1)}),r.addEventListener("click",()=>{E(-1)}));let i=!1;function q(e){t="touchstart"===e.type?e.touches[0].clientX:e.clientX,i=!0,"touchstart"===e.type?n.addEventListener("touchmove",B,!1):n.addEventListener("mousemove",B,!1)}function $(e){i=!1,n.removeEventListener("mousemove",B,!1),n.removeEventListener("touchmove",B,!1)}function B(e){if(e.preventDefault(),!i)return;E(("touchmove"===e.type?Math.round(t-e.touches[0].clientX):t-e.clientX)>0?1:-1),i=!1}n.addEventListener("mousedown",q,!1),n.addEventListener("mouseup",$,!1),n.addEventListener("mouseleave",$,!1),n.addEventListener("touchstart",q,!1),n.addEventListener("touchend",$,!1),n.addEventListener("touchcancel",$,!1)}},addCrawler:function(){const e=document.querySelectorAll(".mdp-crawler-elementor-box");for(let t=0;t